#include <pthread.h> //第三方线程库
#include <iostream>
using namespace std;

void *routine(void *args)
{
    string name = static_cast<char *>(args);
    cout << "新线程：" << name << endl;

    return nullptr;
}

int main()
{
    pthread_t tid;
    pthread_create(&tid, nullptr, routine, (void *)"thread -1");

    cout << "主线程" << endl;
}